/**
* @ProjectName: ShopSytem
* @Title: SystemException.java 
* @Package com.element5th.shop.exception 
* @Description: 封装系统异常信息
* @author 第五元素小组   
* @date 2012-10-26 15:59:21 
* @version V1.0   
*/ 
package com.element5th.shop.comm;

/**
 * The Class SystemException.
 */
public class SystemException extends RuntimeException {

	/** The Constant serialVersionUID. */ 
	private static final long serialVersionUID = 1L;

	
	/** The id. */
	private int id;
	
	/**
	 * Instantiates a new system exception.
	 * 
	 * @param id
	 *            the id
	 */
	public SystemException(int id) {
		this.setId(id);
	}

	/**
	 * Instantiates a new system exception.
	 * 
	 * @param id
	 *            the id
	 * @param message
	 *            the message
	 */
	public SystemException(int id, String message) {
		super(message);
		this.setId(id);
	}

	/**
	 * Instantiates a new system exception.
	 * 
	 * @param cause
	 *            the cause
	 */
	public SystemException(Throwable cause) {
		super(cause);
	}

	/**
	 * Instantiates a new system exception.
	 * 
	 * @param message
	 *            the message
	 * @param cause
	 *            the cause
	 */
	public SystemException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

}
